package com.yulebaby.callsenter.bean;


import com.google.gson.annotations.SerializedName;
import com.yulebaby.callsenter.ui.base.BaseBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;

import java.io.Serializable;

/**
 * Created by zhangbo on 2016/11/13.
 * <p>
 * 电话记录的Bean
 */
@Entity
public class CallLogBean extends BaseBean implements Serializable {
    /**
     * 主键Id
     */
    @Id(autoincrement = true)
    private Long id;
    /**
     * 顾客id
     */
    @SerializedName("customer_id")
    private Long customer_id;
    /**
     * 电话姓名
     */
    @SerializedName("customer_name")
    private String customer_name;
    /**
     * 电话号码
     */
    @SerializedName("customer_phone")
    private String customer_phone;
    /**
     * 通话日期
     */
    @Unique
    @SerializedName("call_time")
    private Long call_time;
    /**
     * 通话状态 1 来电 .INCOMING_TYPE；2 已拨 .OUTGOING_；3 未接 .MISSED_
     */
    @SerializedName("call_type")
    private int call_type;
    /**
     * 通话时长
     */
    @SerializedName("call_duration")
    private int call_duration;
    /**
     * 0 没有录音文件 1 本地播放 2 可暂停 3 网络播放
     */
    @SerializedName("playState")
    private int playState;
    /**
     * 文件路径
     */
    @SerializedName("file_path")
    private String file_path;
    /**
     * 是否上传成功 0 为未上传 1为上传
     */
    private int isUpdate;

    /**
     * 0:未选中 1: 选中 2: 选择过
     */
    @Transient
    private int selectedState;

    public int getIsUpdate() {
        return this.isUpdate;
    }

    public void setIsUpdate(int isUpdate) {
        this.isUpdate = isUpdate;
    }

    public String getFile_path() {
        return this.file_path;
    }

    public void setFile_path(String file_path) {
        this.file_path = file_path;
    }

    public int getPlayState() {
        return this.playState;
    }

    public void setPlayState(int playState) {
        this.playState = playState;
    }

    public int getCall_duration() {
        return this.call_duration;
    }

    public void setCall_duration(int call_duration) {
        this.call_duration = call_duration;
    }

    public int getCall_type() {
        return this.call_type;
    }

    public void setCall_type(int call_type) {
        this.call_type = call_type;
    }

    public Long getCall_time() {
        return this.call_time;
    }

    public void setCall_time(Long call_time) {
        this.call_time = call_time;
    }

    public String getCustomer_phone() {
        return this.customer_phone;
    }

    public void setCustomer_phone(String customer_phone) {
        this.customer_phone = customer_phone;
    }

    public String getCustomer_name() {
        return this.customer_name;
    }

    public void setCustomer_name(String customer_name) {
        this.customer_name = customer_name;
    }

    public Long getCustomer_id() {
        return this.customer_id;
    }

    public void setCustomer_id(Long customer_id) {
        this.customer_id = customer_id;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getSelectedState() {
        return selectedState;
    }

    public void setSelectedState(int selectedState) {
        this.selectedState = selectedState;
    }

    @Generated(hash = 1335512776)
    public CallLogBean(Long id, Long customer_id, String customer_name,
                       String customer_phone, Long call_time, int call_type,
                       int call_duration, int playState, String file_path, int isUpdate) {
        this.id = id;
        this.customer_id = customer_id;
        this.customer_name = customer_name;
        this.customer_phone = customer_phone;
        this.call_time = call_time;
        this.call_type = call_type;
        this.call_duration = call_duration;
        this.playState = playState;
        this.file_path = file_path;
        this.isUpdate = isUpdate;
    }

    @Generated(hash = 837774923)
    public CallLogBean() {

    }


}
